﻿namespace NEnsure.Rules
{
	public class NumericOnlyRule : RegexRule
	{
		public override string RuleKey
		{
			get { return "Numeric-Only Rule"; }
		}

		public NumericOnlyRule()
			: base(@"^[0-9]*$", "Property {key} can only contain digits; you entered: {value}")
		{

		}
	}
}
